import QtQuick 2.5

import QtQuick.Controls 1.4

Rectangle {
    property alias mouseArea: mouseArea
    property color borderColor: checkEditRect.border.color
    property alias inputCheckData: textEdit1
    property alias rectProc: checkEditRect

    width: 600
    height: 200

    anchors.top: parent.top
//    anchors.topMargin: -3


//    Image {
//        id: image1
//        anchors.top: parent.top
//        anchors.topMargin: 3
//        anchors.centerIn: parent
//        source: "https://gitee.com/daxiangs/MarkDown/raw/master/小书匠/timg.jpg"
//    }


    Row{
//        anchors.top: image1.bottom
        anchors.top: parent.top
        anchors.topMargin: 3
        anchors.left: parent.left
        anchors.leftMargin: 5
        width: parent.width-10
        height: parent.height/2
        spacing: 0

        Rectangle{

            id:checkEditRect
            width: parent.width/7*6
            height: 45
            border.width: 1
            border.color: "#5c5555"

            TextEdit {
                id: textEdit1
                anchors.left: parent.left
                anchors.leftMargin: 4
                width: parent.width-8
                height: parent.height-4
                text: qsTr("")
                textFormat: Text.PlainText
                scale: 1
                font.pixelSize: 18
                font.bold: true
                color: "black"
//                horizontalAlignment: TextEdit.AlignHCenter
                verticalAlignment: TextEdit.AlignVCenter
                 selectByMouse: true
            }

        }


        Rectangle {
            id: rectangle1
            color: "blue"
            width: parent.width-checkEditRect.width

            height: checkEditRect.height

            Text {
                width: parent.width
                height: parent.height
                id: checkText
                color: "white"
                text: qsTr("搜索")
                style: Text.Normal
                font.bold: true
                font.pointSize: 23
                font.family: "Arial"
                horizontalAlignment: Text.AlignHCenter
                verticalAlignment: Text.AlignVCenter

            }

            MouseArea {
                id: mouseArea
                anchors.centerIn: parent
                width: parent.width
                height: parent.height
            }
        }

    }



}

